<?php namespace Core\Myapp;

class Zobero
{
    public function getSingleton($namespace)
    {
        return \Registry::getSingleton($namespace);
    }

    public function getRegistry($key)
    {
        return \Registry::get($key);
    }

    public function setRegistry($key, $value)
    {
        return \Registry::register($key, $value);
    }

    public function getEventManager()
    {
        return $this->getSingleton('\Core\Myapp\Event\Event');
    }

    public function getInstance($namespace)
    {
        return new $namespace;
    }

    public function getRouter()
    {
        return $this->getRegistry('router');
    }

    public function getCoreHelper($subNameSpace)
    {
        $key = '\Core\Myapp\Helper' . $subNameSpace;
        return $this->getSingleton($key);
    }

    public function getModuleHelper($module, $helper)
    {

    }

    public function getModel()
    {

    }
}